﻿using System.Configuration;

namespace SimpleWcf.Configuration
{
    /// <summary>
    /// An assembly that contains services
    /// </summary>
    public class ServiceAssembly : ConfigurationElement
    {
        /// <summary>
        /// The name of the assembly.
        /// </summary>
        [ConfigurationProperty("name", DefaultValue = "", IsKey = true, IsRequired = true)]
        public string Name
        {
            get { return (string)(base["name"]); }
            set { base["name"] = value; }
        }

        public override string ToString()
        {
            return Name;
        }
    }
}